@use "home.variable.module" as home;

$titleBar-height: 40px;
$tabBar-height: 70px;

.layout-mobile-home {
  height: 100%;

  .common-mobile-view {
    height: calc(100vh - $tabBar-height - $titleBar-height);
    overflow: auto;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 10px;
  }

  .common-query {
    align-self: center;

    display: flex;
    gap: 10px;
  }

  .mobile-common-query {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    .query-item {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
  }

  .common-statistics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 10px;
  }

  .title-bar {
    background-color: var(--el-color-primary);
    height: $titleBar-height;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;

    .left-container {
      justify-self: flex-start;
      color: #FFFFFF;

      .logo-container {
        display: flex;
        align-items: center;
        gap: 5px;

        .logo {
          width: 20px;
          height: 20px;
        }
      }
    }

    .title-container {
      color: #FFFFFF;
      font-weight: bold;
      font-size: 1.2rem;
    }

    .right-container {
      justify-self: flex-end;

      display: flex;
      align-items: center;
      gap: 5px;
    }
  }

  .tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: $tabBar-height;
    display: flex;
    justify-content: space-around;
    background-color: var(--color-card-bg);
    color: var(--color-text);
    box-shadow: 0 -1px 2px var(--color-border-bg);
    padding: 10px 0;

    .item {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      gap: 5px;

      i {
        font-size: 24px;
      }
    }

    .router-link-active {
      color: var(--el-color-primary);
    }
  }

  .add-new {
    position: absolute;
    right: 2%;
    bottom: 9%;

    font-size: 1.8rem;
  }

  .vc-container {
    width: 100%;

    .vc-day {
      min-height: 40px;
    }

    .vc-day-box-center-bottom {
      height: 105%;
      display: flex;
    }
  }

  .common-section {
    height: 100%;
    overflow: auto;
  }

  .card-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border-bg);
    border-radius: 10px;
    // box-shadow: 3px 3px 3px #CFCFCF;
  }

  .record-card-item {
    background-color: var(--color-record-card-bg);
    border: 1px solid var(--color-record-card-bg);
    border-radius: 10px;
    // box-shadow: 3px 3px 3px #CFCFCF;
  }
}
